<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>在线刷步数</title>
    <base href="./" target="_blank">
    <meta name="keywords" content="刷步数,刷步数接口,手环刷步数,小米运动刷步数,乐心健康刷步数,微信运动刷步数,支付宝刷步,微信刷步,改步数,小程序刷步">
    <meta name="description" content="刷步数,刷步数接口,手环刷步数,小米运动刷步数,乐心健康刷步数,微信运动刷步数,支付宝刷步,微信刷步,改步数,小程序刷步">

    <script src="../js/baidutongji.js"></script>
    <link crossorigin="anonymous" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
        href="https://lib.baomitu.com/twitter-bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet">
    <link crossorigin="anonymous" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
        href="https://lib.baomitu.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link crossorigin="anonymous" integrity="sha384-D4wURFBFb4uPtzPg8AaqEK+EDGBoc/Fb7oSvGS5/6/as85Nnyh500ZnDa54R6B1T"
        href="https://lib.baomitu.com/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css"
        rel="stylesheet">
    <link href="./Content/css/util.css" rel="stylesheet" />
    <link href="./Content/css/main.css" rel="stylesheet" />

    <script crossorigin="anonymous" integrity="sha384-xBuQ/xzmlsLoJpyjoggmTEz8OWUFM0/RC5BsqQBDX2v5cMvDHcMakNTNrHIW2I5f"
        src="https://lib.baomitu.com/jquery/3.2.1/jquery.min.js"></script>

</head>

<body>
    <div class="limiter">
        <div class="container-login100" style="background-image: url('./Content/images/bg-01.jpg');">
            <div class="wrap-login100 p-l-55 p-r-55 p-t-50 p-b-25">
                <form class="login100-form validate-form" id='setWalk'>
                    <span class="login100-form-title p-b-25" style="color:#006935;">小米运动刷步数</span>
                    <div class="wrap-input100 validate-input m-b-8" data-validate="请输入小米运动登录账号">
                        <input class="input100" type="text" id="xmUser" name="zyCount" placeholder="请输入小米运动登录账号"
                            autocomplete="off">
                        <span class="focus-input100" data-symbol="&#xf206;"></span>
                    </div>
                    <div class="wrap-input100 validate-input m-b-8" data-validate="请输入小米运动登录密码">
                        <input class="input100" type="text" id="xmPass" name="zyCount" placeholder="请输入小米运动登录密码"
                            autocomplete="off">
                        <span class="focus-input100" data-symbol="&#xf190;"></span>
                    </div>
                    <div class="wrap-input100 validate-input" data-validate="请输入要修改的步数(1~88800)">
                        <input class="input100" type="text" id="xmStep" name="zyStep" placeholder="请输入要修改的步数(1~88800)">
                        <span class="focus-input100" data-symbol="&#xf215;"></span>
                    </div>
                    <div class="container-login100-form-btn p-t-25">
                        <div class="wrap-login100-form-btn">
                            <div class="login100-form-bgbtn"></div>
                            <button class="login100-form-btn" id='submit' type="button">提交修改</button>
                        </div>
                    </div>
                    <div class="txt1 text-left p-t-25 p-b-8">
                        <span>使用帮助：</span><br />
                        <span>
                            1、安装【小米运动】APP并注册账号
                        </span>
                        <br />
                        <span>
                            2、绑定支付宝、微信等需要同步的平台
                        </span>
                        <br />
                        <span>
                            3、在本页面输入账号、密码及要修改的步数，点击提交修改
                        </span>
                        <br />
                        <span>
                            4、建议分次递增提交，不要修改到非人类的数值
                        </span>
                        <br />
                        <span>
                            5、获取源码及云函数使用方法请
                            <a href="./scf.html" class="txt2">点击这里</a>
                        </span>
                        <br />
                        <span>
                            6、更多帮助及常见问题请
                            <a href="./help.html" class="txt2">点击这里</a>
                        </span>
                        <br />
                    </div>
                    <div class="flex-c-m">
                        <a href="https://erma0.cn/" class="login100-social-item bg1">
                            <i class="fa fa-wechat"></i>
                        </a>
                        <a href="https://erma0.cn/" class="login100-social-item bg2">
                            <i class="fa fa-qq"></i>
                        </a>
                        <a href="https://erma0.cn/" class="login100-social-item bg3">
                            <i class="fa fa-weibo"></i>
                        </a>
                    </div>
                    <div class="flex-col-c p-t-8">
                        <!-- <a href="https://erma0.cn/" class="txt2">52pojie</a> -->
                        <p style="text-align:center;">
                            Copyright &copy;
                            <span class="tm-current-year">2020</span>
                            <a href="https://erma0.cn/" class="txt2">二毛</a>
                            <script>
                                var _hmt = _hmt || [];
                                (function () {
                                    var hm = document.createElement("script");
                                    hm.src = "https://hm.baidu.com/hm.js?425c3828f85a8ff656de67e6fe9d5e7a";
                                    var s = document.getElementsByTagName("script")[0];
                                    s.parentNode.insertBefore(hm, s);
                                })();
                            </script>
                        </p>
                    </div>

                </form>
            </div>
        </div>
    </div>
</body>

</html>
<script type="text/javascript">
    $('#submit').click(
        function () {
            $('#submit').text('提交中...')
            $('#submit').attr('disabled', 'true')

            var user = document.getElementById("xmUser").value;
            var pass = document.getElementById("xmPass").value;
            var step = document.getElementById("xmStep").value;
            if (user == '') {
                alert('账号不能为空！');
                return
            }
            if (pass == '') {
                alert('密码不能为空！');
                return
            }
            if (step == '') {
                alert('步数留空则取随机值！');
            }

            $.get('https://erma0.cn/api/walk', {
                'user': user,
                'pass': pass,
                'step': step
            }, function (data) {
                $('#submit').text('提交修改')
                $('#submit').removeAttr('disabled')
                alert(data)
            })
            // alert('申请已提交！')

        })
</script>